package com.secret.entity;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "t_user", schema = "RBAC")
@SuppressWarnings("serial")
/**用户信息类*/
public class User implements Serializable {
	private final static Logger logger = LoggerFactory.getLogger(User.class);
	public User(){
		logger.info("=================================== user init ===================================");
	}

	/**1 表序号*/
	 @Id
	 @GeneratedValue(strategy=GenerationType.IDENTITY)
	 @Column(name = "id", nullable = false)
	private int id;
	/**2 用户ID*/
/*	@Id
	//@GenericGenerator(name = "uuid", strategy = "uuid")
	@Column(name = "uid", nullable = false)
	private String uid;*/

	private String password;

	/**6 姓名*/
	private String name;
	/**7 性别*/
	private String sex;

	/**9 手机*/
	private String phone;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
}
